package com.haiheng.library_base.msg

/**
 *
 * @Des:
 * @Author: hwz
 * @Date:2022/8/1 0001
 * @Version: 1.0
 */
class MsgCode {
    companion object{
        const val MSG_ROBOT_CODE : Int  = 0
        const val MSG_DESKTOP_ROBOT_CODE : Int  = 1
        const val MSG_ROBOT_SOTOP_NAVIGATION_CODE : Int  = 90

        //重新连接成功
        const val RE_CONNECT_SUCCESS = 126
        //重新连接
        const val RE_CONNECT = 122
        //socket收到的消息
        const val SOCKET_RECEIVED_MSG = 123

        //身份证登录失败
        const val MSG_LOGIN_FAIL_BY_IDENTITYID =  300
        //读者证登录失败
        const val MSG_LOGIN_FAIL_BY_PATRON = 301

        const val MSG_MQTT_CONNECT_SUCCESS = 400
        const val MSG_MQTT_CONNECT_FAIL = 401
        const val MSG_MQTT_MESSAGE_ARRIVED = 402
        const val MSG_SCANS_BARCODE = 501
    }
}